<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="utils.js"></script>
<title>Fenced frame content to verify window.prompt does not show a prompt.</title>

<body>
  <script>
    async function init() { // Needed in order to use top-level await.
      // This file is meant to run in a <fencedframe>. It reports back to the
      // outermost page whether or not it succeeded in showing a `window.prompt`.
      const window_prompt_key = stringToStashKey("window.prompt");

      let result = (window.prompt("Test prompt") == null) ? "pass" : "fail";

      writeValueToServer(window_prompt_key, result);
    }

    init();
  </script>
</body>
